package com.programs.waw;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class AccesPointViewCache {

	private View baseView;
	private TextView textViewSsid;
	private TextView textViewBssid;
	private ImageView imageViewSignal;

	public AccesPointViewCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getTextViewSsid() {
		if (textViewSsid == null) {
			textViewSsid = (TextView) baseView.findViewById(R.id.ssidString);
		}
		return textViewSsid;
	}

	public TextView getTextViewBssid() {
		if (textViewBssid == null) {
			textViewBssid = (TextView) baseView.findViewById(R.id.bssidString);
		}
		return textViewBssid;
	}

	public ImageView getImageSignal() {
		if (imageViewSignal == null) {
			imageViewSignal = (ImageView) baseView
					.findViewById(R.id.levelImage);
		}
		return imageViewSignal;
	}
}
